package com.example.singleon;

/**
 * 饿汉式
 */
public class Singleton1 {

    private Singleton1(){}
    private static final Singleton1 singleton = new Singleton1();
    public static Singleton1 getInstance(){
        return singleton;
    }
}
